package com.example.haoqisystem.respository;

import com.example.haoqisystem.entity.Notification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;
import java.util.Optional;

public interface NotificationRepository extends JpaRepository<Notification,Long>
        , JpaSpecificationExecutor<Notification> {
    Optional<Notification> findByIdAndDeletedFalse(Long id);

    List<Notification> findAllByIdInAndDeletedFalse(List<Long> ids);
}
